package com.shiyipicture.shiyipicturebackend.service;

import com.shiyipicture.shiyipicturebackend.model.dto.space.SpaceAddRequest;
import com.shiyipicture.shiyipicturebackend.model.entity.Picture;
import com.shiyipicture.shiyipicturebackend.model.entity.Space;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shiyipicture.shiyipicturebackend.model.entity.User;
import com.shiyipicture.shiyipicturebackend.model.vo.SpaceVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author Administrator
* @description 针对表【space(空间)】的数据库操作Service
* @createDate 2025-01-10 15:34:16
*/
public interface SpaceService extends IService<Space> {

  void validSpace(Space space,boolean add);

  void fillSpaceBySpaceLevel(Space space);

  long addSpace(SpaceAddRequest spaceAddRequest, User loginUser);

  void checkSpaceAuth(User loginUser, Space space);

  SpaceVO getSpaceVo(Space space, HttpServletRequest request);

  SpaceVO getSpaceVO(Space space, HttpServletRequest request);
}
